﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

using Host.ModelDTO;
using Domain.DomainBase;


namespace Host.IContract
{
    [ServiceContract]
    public interface IServiceContract
    {
        [OperationContract]
        List<UserDTO> GetAllUser();

        [OperationContract]
        List<UserDTO> FindUserPageList(out long total, int page, int rp, string sortname, string sortorder, string qtype, string query);

        [OperationContract]
        object SaveUser(UserDTO dto);

        [OperationContract]
        void UpdateUser(UserDTO model);

        [OperationContract]
        void DeleteUser(List<long> idList);

        [OperationContract]
        List<CompanyDTO> FindCompanyPageList(out long total, int page, int rp, string sortname, string sortorder, string qtype, string query);
    }
}
